package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @AUTHOR soft
 * @DATE 2018/9/3 18:21
 * @DESCRIBE 加入学习的课程中任务的学习情况
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "learn_task")
public class LearnTask extends Model {
    private Integer id;

    private Integer userId;    // 学习者
    @Ignore
    private User    user;

    private Integer courseId;  // 课程id

    private Integer taskId;    // 所属任务
    @Ignore
    private Task    task;

    private Float   learnTime; // 学习时间 s
    private Integer rate;      // 1-100
}
